home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Utilities / Converters / Convert_PICT / Testing / hex_tests / pat=set2=rgb.hex < prev    next >
Text File  |  1995-06-12  |  3KB  |  97 lines

  1. % header
  2. 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  3. % end of app-specific header
  4. 00FF 0000 0000 00FF 00FF    % pict size (bogus) and top left bottom right
  5. 0011 02FF                        % verson
  6. 0001 000A 0000 0000 00FF 00FF    % Clip region.  Added to keep Mac tester happy.
  7. 0030 0000 0000 00FF 00FF        % draw bounding rect
  8.  
  9. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  10. %
  11. %    This test set seeks to demonstrate that more 'special' opcodes
  12. %    for bitmaps, polygons, regions, and thickly framed shapes work as
  13. %    they should with patterns.
  14. %    This test confirms that they work with basic type 2 (rgb) pnpxpat patterns
  15. %
  16. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  17. % PnPix Background pattern
  18. 0012
  19. 0002                % Type
  20. 0102 0408 1020 4080    % pattern
  21. F0F0 0000 0000        % slightly off red
  22.  
  23. % PnPix Pen pattern
  24. 0013
  25. 0002                % Type
  26. 0102 0408 1020 4080    % pattern
  27. 0000 8080 0000        % half green
  28.  
  29. % PnPix Fill pattern
  30. 0014
  31. 0002                % Type
  32. 0102 0408 1020 4080    % pattern
  33. FFFF 0000 8888        % Red with a middling of blue (purpleish?)
  34.  
  35.  
  36. % paint a region
  37. 0081 0028 0090 0010 00F0 0070
  38.     0090 0040 0050 7FFF
  39.     00C0 0010 0070 7FFF
  40.     00F0 0010 0040   0050 0070 7FFF
  41.     7FFF
  42.  
  43.  
  44. % fill a hexagonal polygon
  45. 0074 0026 0080 0080 00F0 00F0
  46.     0080 00A0
  47.     0080 00D0
  48.     00C0 00F0
  49.     00F0 00D0
  50.     00F0 00A0
  51.     00C0 0080
  52.     0080 00A0
  53.  
  54.  
  55. % set a thick pen size
  56. 0007 0010 0008
  57.  
  58. % thickly Frame a rectangle
  59. 0030 0010 0080 0050 00D0
  60.  
  61.  
  62. % Include a bitmap, to confirm it is not affected
  63.  
  64. 0090
  65. 0004            % rowbytes
  66. 0000 0050 0018 0070    % bounds  (t l b r)
  67. 0000 0050 0018 0069    % source rect
  68. 0010 0020 0028 0039    % dest rect
  69. 0001        % mode
  70. 00 7F 00 00    % bit data (unpacked)
  71. 03 80 E0 00
  72. 06 00 30 00
  73. 08 00 08 00
  74. 10 00 04 00
  75. 20 00 02 00
  76. 60 00 03 00
  77. 40 00 01 00
  78. 40 00 81 00
  79. 80 03 80 80
  80. 83 00 00 80
  81. 80 00 00 80
  82. 80 00 00 80
  83. 80 00 30 80
  84. 80 00 20 80
  85. 40 00 21 00
  86. 40 00 C1 00
  87. 63 07 83 00
  88. 20 F8 02 00
  89. 10 00 04 00
  90. 08 00 08 00
  91. 06 00 30 00
  92. 03 80 E0 00
  93. 00 7F 00 00
  94.  
  95.  
  96. 00FF    % end
  97.